#include "Usb.h"


Usb::Usb() {
}

Usb::Usb(string pid, string brand, int stock, int price, int memory, string color) 
	: Products( pid, brand, stock, price) {
		setMemory(memory);
		setColor(color);
}

int Usb::getMemory() {
	return this->memory;
}

void Usb::setMemory(int memory) {
	this->memory = memory;
}

string Usb::getColor() {
	return this->color;
}

void Usb::setColor(string color) {
	this->color = color;
}

void Usb::productInfo() {
	Products::productInfo();
	stringstream ss;
	ss << getMemory() << "GB";
	//cout << " |" << getMemory() << " |" << getColor();
	cout << left << " | " << setw(12) <<  ss.str() << " | " << setw(10) << getColor();
}
